<php>
	$_ns = time().'_'.$_field['id'];
	$_field['_type'] = substr($_field['_type'],5);
</php>
<eq name='_field._type' value='hidden'>
	<input type="hidden" name="{$_field._field}" value="{$_field._value}" />
<else/>
	<div class="form-group">
		<label for="{$_ns}" class="col-sm-2 control-label">{$_field.title}</label>
		<div class="col-sm-10">

		<switch name="_field._type">

			<case value="bool">
				<include file="Admin@Common/field/bool"/>
			</case>
			
			<case value="select">
				<include file="Admin@Common/field/select"/>
			</case>

			<case value="radio">
				<include file="Admin@Common/field/radio"/>
			</case>

			<case value="checkbox">
				<include file="Admin@Common/field/checkbox"/>
			</case>

			<case value="textbox">
				<include file="Admin@Common/field/textbox"/>
			</case>

			<case value="multitextbox">
				<include file="Admin@Common/field/multitextbox"/>
			</case>

			<case value="image">
				<include file="Admin@Common/field/image"/>
			</case>

			<case value="images">
				<include file="Admin@Common/field/images"/>
			</case>

			<case value="file">
				<include file="Admin@Common/field/file"/>
			</case>

			<case value="files">
				<include file="Admin@Common/field/files"/>
			</case>

			<case value="ueditor">
				<include file="Admin@Common/field/ueditor"/>
			</case>

			<case value="combotree">
				<include file="Admin@Common/field/combotree"/>
			</case>

			<case value="datadict">
				<include file="Admin@Common/field/datadict"/>
			</case>

			<case value="numberbox">
				<include file="Admin@Common/field/numberbox"/>
			</case>

			<case value="timespinner">
				<include file="Admin@Common/field/timespinner"/>
			</case>

			<case value="datebox">
				<include file="Admin@Common/field/datebox"/>
			</case>

			<case value="datetimebox">
				<include file="Admin@Common/field/datetimebox"/>
			</case>

			<default />
				<span style="color:red;">{$_field._type}表单类型不存在 请联系专业人员</span>
		</switch>

		<notempty name='_field.instruction'>
			<p class="help-block">{$_field.instruction}</p>
		</notempty>
		
		</div>
	</div>
</eq>